package common

type LoginConfig struct {
	Username   string `yaml:"username"`
	Password   string `yaml:"password"`
	Role       string `yaml:"role"`
	Token      string `yaml:"token"`
	Expire     int    `yaml:"expire"`
	ExpireTime string `yaml:"expire_time"`
	CreateTime string `yaml:"create_time"`
	Status     int    `yaml:"status"`
	Remark     string `yaml:"remark"`
	IsDel      int    `yaml:"is_del"`
	IsSuper    int    `yaml:"is_super"`
	IsLogin    int    `yaml:"is_login"`
	LoginIP    string `yaml:"login_ip"`
}
type Configure struct {
	Debug       bool         `yaml:"debug"`
	LoginConfig *LoginConfig `yaml:"login-config"`
}

var _conf *Configure

func Get() *Configure {
	return _conf
}
func Set(c *Configure) {
	_conf = c
}

type AppData struct {
	IsLogin  bool   `json:"islogin"`
	Password string `json:"password"`
}
